#define _CRT_SECURE_NO_WARNINGS 1
#define NDEBUG
#include<stdio.h>
#include<assert.h>
void* copy_memcpy(void* str2,void* str1,size_t n)
{
	
	void* tem = str2;
	assert(str1);
	assert(str2);
	while (n--)
	{
		*(char*)str2 = *(char*)str1; 
			((char*)str2)++;
			((char*)str1)++;
	}
	return tem;
}
int main()
{
	int arr1[] = { 1,2,3,4,5,6,7,8,9,10 };
	int arr2[10] = { 0 };
	copy_memcpy(arr2, arr1, 40);
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}
